<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="/css/style.css" rel="stylesheet" type="text/css">
<title>List</title>
</head>
<body>
<table border="1">
    <tr>
        <td align="center">SEQ</td>
        <td align="center">IP</td>
        <td align="center">Insert Date</td>
        <td align="center">Request IP</td>
    </tr>
    
    <c:forEach items="${entityList}" var="item">
    <tr>
        <td><c:out value="${item.key.id}" /></td>
        <td><c:out value="${item.properties.IP_ADDRESS}" /></td>
        <td><fmt:formatDate pattern="yyyy-MM-dd hh:mm:ss" value="${item.properties.INSDATE}" /></td>
        <td><c:out value="${item.properties.REQ_ADDRESS}" /></td>
    </tr>    
    </c:forEach>
    
</table>
history <br />
<table border="1">
    <tr>
        <td align="center">SEQ</td>
        <td align="center">IP</td>
        <td align="center">Insert Date</td>
        <td align="center">Request IP</td>
    </tr>
    
    <c:forEach items="${entityLogList}" var="item">
    <tr>
        <td><c:out value="${item.key.id}" /></td>
        <td><c:out value="${item.properties.IP_ADDRESS}" /></td>
        <td><fmt:formatDate pattern="yyyy-MM-dd hh:mm:ss" value="${item.properties.INSDATE}" /></td>
        <td><c:out value="${item.properties.REQ_ADDRESS}" /></td>
    </tr>    
    </c:forEach>
    
</table>
<a href="saveForm.do">Form</a>
</body>
</html>